// import { Aspect, IMethodAspect, JoinPoint } from '@midwayjs/core';
// import * as controllers from "../controller"
// import { CommonRes } from "../model"

// @Aspect(Object.values(controllers))
// export class ReportInfo implements IMethodAspect {
//   async around(point: JoinPoint) {
//     const result = await point.proceed(...point.args) as CommonRes & Record<string, any>;
//     const res = {
//       code: result.code || 0,
//       msg: result.msg || '操作成功',
//       data:result
//     }
//     delete res.data.msg
//     delete res.data.code
//     return res
//   }
// }
